﻿<phone:PhoneApplicationPage 
    x:Class="first_learn.ViewPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid  Background="Transparent" Height="Auto">
        <!--TitlePanel contains the name of the application and page title-->
  

        <ScrollViewer  HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Margin="0,0,0,65">
            <Grid MaxHeight="9000" Height="Auto">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0,0,0,28">
                    <TextBlock x:Name="ApplicationTitle" Text="View Picture" Style="{StaticResource PhoneTextNormalStyle}"/>
                    
                </StackPanel>
            
                    <StackPanel Grid.Row="1" Margin="0 0 0 0">
              
                            <Image x:Name="View_Image"  Source="http://ww2.sinaimg.cn/large/6af0ad49jw1dydhdmcshzj.jpg" ImageFailed="Image_ImageFailed" AllowDrop="False" OpacityMask="#FFE52E15" VerticalAlignment="Stretch" Visibility="Visible" />
              
              </StackPanel >
                <StackPanel Grid.Row="2"  Margin="0,6,0,0" VerticalAlignment="Top">
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="270" />
                            <ColumnDefinition Width="120" />
                            <ColumnDefinition Width="100" />
                            
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Height="60" HorizontalAlignment="Left" Text="Comments:" FontSize="32" />
                        <Button x:Name="Button_Like" Grid.Column="1"   Click="Click_star" Width="120" Height="60"  BorderThickness="0" Visibility="Visible">
                            <Button.Background>
                                <ImageBrush x:Name="Image_Like" ImageSource="/first-learn;component/images/star1.png" Stretch="Uniform" />
                            </Button.Background>
                        </Button>
                     
                        <TextBlock x:Name="Like_Count" Grid.Column="2" Height="60" Text="5" FontSize="32" FontFamily="Segoe WP" FontStretch="ExtraExpanded" FontStyle="Normal" FontWeight="SemiBold" Foreground="#FFFCC306" FlowDirection="LeftToRight"  Margin="0" IsHitTestVisible="False" HorizontalAlignment="Center" />
                    </Grid>
                </StackPanel>

                <StackPanel Grid.Row="3"   Margin="0 0 0 0" >

                    <Grid Height="130">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="360" />
                            <ColumnDefinition Width="120" />
                        </Grid.ColumnDefinitions>
                        <TextBox x:Name="Comment_Edit" Height="80" Margin="0,0,0,60"></TextBox>
                        <Button x:Name="Button_Send_Comment" Grid.Column="1" Content="Send" Click="Send_Comment" Width="120" Height="80" BorderThickness="3" Visibility="Visible" Margin="0,0,0,60"></Button>
                    </Grid>
                </StackPanel>
                <StackPanel x:Name="Comment_Area" Grid.Row="4" Margin="0 0 0 0" Height="Auto">

                    
                    
                </StackPanel>





            </Grid>
        </ScrollViewer>
   
    </Grid>
    
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
